<?php /* Smarty version 2.6.26, created on 2013-02-13 10:12:05
         compiled from tmoncell_index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'tmoncell_index.html', 129, false),array('function', 'html_radios', 'tmoncell_index.html', 138, false),array('modifier', 'escape', 'tmoncell_index.html', 153, false),)), $this); ?>
<?php echo '<?xml'; ?>
 version="1.0" encoding="utf-8"<?php echo '?>'; ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Script-Type" content="text/javascript" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<title>コントロールパネル</title>
		<link rel="stylesheet" href="./assets/styles/default.css" type="text/css" />
		<link rel="stylesheet" href="./assets/styles/ui-lightness/ui.all.css" type="text/css" />
		<link rel="stylesheet" href="./assets/styles/ui-lightness/jquery-ui-1.7.3.custom.css" type="text/css" />
		<link rel="stylesheet" href="./assets/styles/dialog.css" type="text/css" />
		
		<script src="assets/scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
		<script src="assets/scripts/jquery-ui-1.7.3.custom.min.js" type="text/javascript"></script>
		<script src="assets/scripts/ui/ui.dialog.js" type="text/javascript"></script>
		<script src="assets/scripts/menu.js" type="text/javascript"></script>
		<script src="assets/scripts/table.js" type="text/javascript"></script>
		
		<script type="text/javascript" src="./assets/scripts/ui/ui.core.js"></script>
		<script type="text/javascript" src="./assets/scripts/ui/ui.datepicker.js"></script>
		<script type="text/javascript" src="./assets/scripts/search.js"></script>
		
		<link rel="stylesheet" href="./assets/styles/cellgrid.css" type="text/css" />
		
		<script type="text/javascript">
		$(function() {
			$('.message').fadeIn("slow");
			
			$('.text_date').datepicker({
				changeMonth: true,
				changeYear: true,
				dateFormat: 'yy/mm/dd'
			});
			
			$('#btn-export').click(function(){	
				if(confirm('ダウンロードしますか？')){
					document.fm.csv.value="download";
					document.fm.submit();
				}
			});
			
			$('#btn-reset').click(function(){	
				location.href = document.fm.action;
			});
			
			$('#btn_search').click(function(){
					document.fm.csv.value="";
					document.fm.submit();
			});
			
			$('#year4').change(function(){
				var year4 = this.value;
				var myDate = new Date();
				var nowtime =  myDate.getTime();
				$.get("mmap_week_ajax.php",{ y: year4,t : nowtime }, function(data){
					$("#week_cd").children().remove();
					$("#week_cd").append( data ); 
				});
			});
			
			$('#week_cd').change(function(){
				var week_cd = this.value;
				var myDate = new Date();
				var nowtime =  myDate.getTime();
				$.get("ajax_title.php",{ w: week_cd,t : nowtime }, function(data){
					$("#title").children().remove();
					$("#title").append( data ); 
				});
			});
			
			$('.sort').change(function(){
				if (this.value == 2) {
					$('#tr_op3')['hide']();
					$('#tr_op2')['show']();
				}else if (this.value == 3) {
					$('#tr_op2')['hide']();
					$('#tr_op3')['show']();
				}else {
					$('#tr_op2')['hide']();
					$('#tr_op3')['hide']();
				}
			});
			
		});
		function toPage(thepage) {
			document.fm.page.value =  thepage;
			document.fm.csv.value="";
			document.fm.submit();
		}
		function setSS( valcd, valnm ) {
			if (gPara == "shop") {
				document.fm.sshop_cd.value = valcd;
				document.fm.sshop_name.value = valnm;			
			}
			if (gPara == "mediaid") {
				document.fm.media_cd.value = valcd;
				document.fm.media_name.value = valnm;			
			} 

			$('#dialog').dialog("close");
		}
	</script>
	<link rel="stylesheet" type="text/css" href="./assets/styles/tablesorter.css" />
	<script type="text/javascript" src="./assets/scripts/tablesorter.js"></script>
	</head>
	<body id="">
<?php echo $this->_tpl_vars['menu']; ?>

<?php echo $this->_tpl_vars['logout']; ?>

		<div id="container"><div class="wrapper">
			<h2>印刷手配管理</h2>
			<ul class="submenu clearfix">
				<li>月間.セール明細情報一覧</li>
			<?php if (! $this->_tpl_vars['isG23']): ?>	<li><a href="tmoncell_form.php">月間.セール明細情報登録</a></li><?php endif; ?>
				<li><a href="tmoncell_update.php">月間.セール明細情報更新</a></li>
			<?php if (! $this->_tpl_vars['isG23']): ?><li><a href="tmoncellprn_index.php">印刷部数明細</a></li><?php endif; ?>
				<li><a href="tmoncellshop_index.php">店舗実施一覧表</a></li>
			</ul>
			<h3>月間.セール明細情報一覧</h3>
			<form name="fm" id="fm" method="get" action="tmoncell_index.php" >
				<input type="hidden" name="page" />
				<table class="formTable">
					<tbody>
						<tr>
							<th>年度※</th>
							<td>
&nbsp;<?php echo smarty_function_html_options(array('id' => 'year4','name' => 'year4','options' => $this->_tpl_vars['year4'],'selected' => $this->_tpl_vars['forms']['year4']), $this);?>
 年<?php echo $this->_tpl_vars['err']['year4']; ?>

							</td>
							<th>週名※</th>
							<td>
&nbsp;<?php echo smarty_function_html_options(array('id' => 'week_cd','name' => 'week_cd','options' => $this->_tpl_vars['week'],'selected' => $this->_tpl_vars['forms']['week_cd']), $this);?>
<?php echo $this->_tpl_vars['err']['week_cd']; ?>

							</tr>
						<tr>
							<th>種類</th>
							<td>
								&nbsp;<?php echo smarty_function_html_radios(array('name' => 'sort','class' => 'sort','options' => $this->_tpl_vars['cellsort'],'selected' => $this->_tpl_vars['forms']['sort'],'separator' => '&nbsp;'), $this);?>

							</td>
							<th>AJAREKSコード※</th>
							<td>
								<div id = "tr_op2"  style="display:<?php if (( $this->_tpl_vars['forms']['sort'] == 2 )): ?>block<?php else: ?>none<?php endif; ?>;">
								&nbsp;<?php echo smarty_function_html_options(array('name' => 'areauser','options' => $this->_tpl_vars['areauser'],'selected' => $this->_tpl_vars['forms']['areauser']), $this);?>
<?php echo $this->_tpl_vars['err']['areauser']; ?>

								</div>	<div id = "tr_op3"  style="display:<?php if (( $this->_tpl_vars['forms']['sort'] == 3 )): ?>block<?php else: ?>none<?php endif; ?>;">
								&nbsp;<?php echo smarty_function_html_options(array('id' => 'zone_cd','name' => 'zone_cd','options' => $this->_tpl_vars['zone'],'selected' => $this->_tpl_vars['forms']['zone_cd']), $this);?>
<?php echo $this->_tpl_vars['err']['zone_cd']; ?>

								</div>
								<?php echo $this->_tpl_vars['err']['aja_cd']; ?>

							</td>
						</tr>
						<tr>
							<th>店舗</th>
							<td colspan="3">
								&nbsp;<input type="text" name="sshop_name" class="text" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['sshop_name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" readonly="readonly" />
								<input type="hidden" name="sshop_cd"  value="<?php echo ((is_array($_tmp=$this->_tpl_vars['forms']['sshop_cd'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
								<button type="button" id="shop" class="btn_search" rel="shop"><span>参照</span></button>
								<button type="button" id="sshop_c" class = "btn_clear" rel="sshop"><span>クリア</span></button>
							</td>
						</tr><!--  
						<tr>
							<th>版サイズ</th>
							<td colspan="3">
								&nbsp;<?php echo smarty_function_html_options(array('name' => 'mark','options' => $this->_tpl_vars['mark'],'selected' => $this->_tpl_vars['vv']['mark']), $this);?>

							</td>
						</tr>
						--><tr>
							<th>セールタイトル</th>
							<td colspan = 3>
								&nbsp;<?php echo smarty_function_html_options(array('id' => 'title','class' => 'titlebase','name' => 'title','options' => $this->_tpl_vars['title'],'selected' => $this->_tpl_vars['forms']['title']), $this);?>

							</td>
						</tr>
						<tr>
							<th>更新日</th>
							<td colspan="3">
							&nbsp;	<input type="text" name="upd_f" class="text_date" value="<?php echo $this->_tpl_vars['forms']['upd_f']; ?>
" /> ～ 
								<input type="text" name="upd_t" class="text_date" value="<?php echo $this->_tpl_vars['forms']['upd_t']; ?>
" />
							</td>
						</tr>
					</tbody>
				</table>
				<p class="button" style="text-align:right">
					<button type="button" id="btn-reset"><span>クリア</span></button>
					<button type="button" id="btn_search" class="submit"><span>絞込検索</span></button>
				</p>
				<input type="hidden" name="search" value="1" />
				<input type="hidden" name="csv" />
				<input type="hidden" name="mapoperflg" />
			<hr>
<?php if (is_numeric ( $this->_tpl_vars['count'] )): ?>
<?php if ($this->_tpl_vars['count'] > 0): ?>
<p class="message"><?php echo $this->_tpl_vars['count']; ?>
件の情報が見つかりました。</p>
 <div class="l_head_div" id ="lhdiv">
 <table class="formTable" id = "head_tab_l" style="table-layout:fixed;word-wrap:break-word;word-break:break-all;" >
 <tr><th style="width:28px;height:80px">合<br/>同</th>
 <th style="width:60px">ゾーン<br/>AJA</th>
 <th style="width:45px">レ<br/>ギュ<br/>ラー</th>
 <th style="width:45px">イレ<br/>ギュ<br/>ラー</th>
 <th style="width:30px">地域<br/>1</th>
 <th style="width:30px">地域<br/>2</th>
 <th style="width:30px">地域<br/>3</th>
 <th style="width:30px">地域<br/>4</th>
 <th style="width:30px">地域<br/>5</th>
 <th style="width:70px">年商</th>
 <th style="width:38px">店舗<br/>コード</th> 
 <th style="width:120px">店舗名</th>
 </tr>
 </table>
 </div>
 <div class="r_head_div" id ="rhdiv" onscroll="document.getElementById('rdiv').scrollLeft=this.scrollLeft;">
 <table class="formTable" id = "head_tab_r"  style="table-layout:fixed;word-wrap:break-word;word-break:break-all;width:3000px">
 <tr>
		<th style="width:28px;height:80px">&nbsp;</th><th >前年売上<br/>高実績<br/>(千円)</th><th>前年<br/>セールタイトル</th><th style="width:220px;">本年<br/>セールタイトル</th>
		<th style="width:28px;"></th><th style="width:80px;">前年チラシ部数</th><th>パターン</th>
		<th style="width:80px;">本年チラシ部数</th><th style="width:138px;">パターン</th>
<?php $_from = $this->_tpl_vars['cell_wsets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<th style="width:220px;"><?php echo $this->_tpl_vars['cv']['name']; ?>
<br/>セールタイトル</th><th style="width:28px;"></th> <th style="width:80px;"><?php echo $this->_tpl_vars['cv']['name']; ?>
<br/>チラシ部数</th><th style="width:138px;">パターン</th>
<?php endforeach; endif; unset($_from); ?>
<?php $_from = $this->_tpl_vars['cell_losets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<th style="width:220px;"><?php echo $this->_tpl_vars['cv']['name']; ?>
<br/>前年<br/>セールタイトル</th><th style="width:220px;"><?php echo $this->_tpl_vars['cv']['name']; ?>
<br/>セールタイトル</th><th style="width:28px;"></th><th style="width:80px;"><?php echo $this->_tpl_vars['cv']['name']; ?>
</br>前年チラシ部数</th><th><?php echo $this->_tpl_vars['cv']['name']; ?>
<br/>前年<br/>パターン</th> <th style="width:80px;"><?php echo $this->_tpl_vars['cv']['name']; ?>
<br/>チラシ部数</th><th  style="width:138px;"><?php echo $this->_tpl_vars['cv']['name']; ?>
<br/>パターン</th>
	<?php $_from = $this->_tpl_vars['cv']['weeks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cwsets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cwsets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['wck'] => $this->_tpl_vars['wcv']):
        $this->_foreach['cwsets']['iteration']++;
?>
		<th style="width:220px;"><?php echo $this->_tpl_vars['wcv']['name']; ?>
<br/>セールタイトル</th><th style="width:28px;"></th> <th style="width:80px;"><?php echo $this->_tpl_vars['wcv']['name']; ?>
<br/>チラシ部数</th><th>パターン</th>
	<?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?>
		</tr>
	</table>
 </div>

 <div class="l_div" id="ldiv" onscroll="document.getElementById('rdiv').scrollTop=this.scrollTop;"> 
 <table class="formTable" id = "1_tab_l" style="table-layout:fixed;word-wrap:break-word;word-break:break-all;" >
 <tr style="height:1px;"><th style="width:28px;height:1px"></th>
 <th style="width:60px"></th>
 <th style="width:45px"></th>
 <th style="width:45px"></th>
 <th style="width:30px"></th>
 <th style="width:30px"></th>
 <th style="width:30px"></th>
 <th style="width:30px"></th>
 <th style="width:30px"></th>
 <th style="width:70px"></th>
 <th style="width:38px"></th> 
 <th style="width:120px"></th>
 </tr>
 <?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['kk'] => $this->_tpl_vars['vv']):
        $this->_foreach['member']['iteration']++;
?>
  <tr><td rowspan=3><?php echo $this->_tpl_vars['vv']['mark']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['user_name']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['rgyu']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['irgyu']; ?>
<input type="hidden"  name="hirgyu[]" value="<?php echo $this->_tpl_vars['vv']['irgyu']; ?>
" /></td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['lnews1']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['lnews2']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['lnews3']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['lnews4']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['lnews5']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['year_sale']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['shop_cd']; ?>
</td>
	<td rowspan=3> <?php echo $this->_tpl_vars['vv']['shop_name']; ?>
</td>
	</tr><tr></tr><tr></tr>
<?php endforeach; endif; unset($_from); ?>
 </table>
 </div>
<div class="r_div" id="rdiv" onscroll="document.getElementById('rhdiv').scrollLeft=this.scrollLeft;document.getElementById('ldiv').scrollTop=this.scrollTop;"> 
	<table class="formTable" id = "1_tab_r"  style="table-layout:fixed;word-wrap:break-word;word-break:break-all;width:3000px">
	<tr style="height:1px;">
		<th style="width:28px;height:1px;"></th><th></th><th></th><th style="width:220px;"></th>
		<th style="width:28px;"></th><th style="width:80px;"></th><th></th>
		<th style="width:80px;"></th><th style="width:138px;"></th>
<?php $_from = $this->_tpl_vars['cell_wsets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<th style="width:220px;"></th><th style="width:28px;"></th><th style="width:80px;"></th><th style="width:138px;"></th>
<?php endforeach; endif; unset($_from); ?>
<?php $_from = $this->_tpl_vars['cell_losets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<th style="width:220px;"></th><th style="width:220px;"></th><th style="width:28px;"></th><th style="width:80px;"></th><th></th> <th style="width:80px;"></th><th style="width:138px;"></th>
	<?php $_from = $this->_tpl_vars['cv']['weeks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cwsets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cwsets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['wck'] => $this->_tpl_vars['wcv']):
        $this->_foreach['cwsets']['iteration']++;
?>
		<th style="width:220px;"></th><th style="width:28px;"></th><th style="width:80px;"></th><th> style="width:138px;"</th>
	<?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?>
		</tr>
<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['kk'] => $this->_tpl_vars['vv']):
        $this->_foreach['member']['iteration']++;
?>
 <?php $this->assign('i', ($this->_foreach['member']['iteration']-1)); ?>
 
	<tr>
	<td align=center>土</td><td> <?php echo $this->_tpl_vars['vv']['lyear_sale6']; ?>
</td>
	<td rowspan='3'><?php echo $this->_tpl_vars['vv']['ltitle_cd']; ?>
</td>
	<td rowspan='3'><?php echo $this->_tpl_vars['vv']['title_cd']; ?>
</td>
	
	<td align=center>B2</td>
	<td><?php echo $this->_tpl_vars['vv']['lnpc_b2']; ?>
</td>
	<td><?php echo $this->_tpl_vars['vv']['lpc_b2']; ?>
</td>
	<td><?php echo $this->_tpl_vars['vv']['npc_b2']; ?>
</td>
	<td><?php echo $this->_tpl_vars['vv']['pc_b2']; ?>
</td>

<?php $_from = $this->_tpl_vars['cell_wsets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<td rowspan='3'><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['title_cd']]; ?>
</td>	
		<td align=center>B2</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['npc_b2']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['pc_b2']]; ?>
</td>
<?php endforeach; endif; unset($_from); ?>

<?php $_from = $this->_tpl_vars['cell_losets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<td rowspan='3'><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['ltitle_cd']]; ?>
</td>	
		<td rowspan='3'><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['title_cd']]; ?>
</td>	
		<td align=center>B2</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['lnpc_b2']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['lpc_b2']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['npc_b2']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['pc_b2']]; ?>
</td>
		<?php $_from = $this->_tpl_vars['cv']['weeks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cwsets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cwsets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['wck'] => $this->_tpl_vars['wcv']):
        $this->_foreach['cwsets']['iteration']++;
?>
		 <td rowspan='3'><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['wcv']['title_cd']]; ?>
</td>	
		 <td align=center>B2</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['wcv']['npc_b2']]; ?>
 /></td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['wcv']['pc_b2']]; ?>
 /></td>
		<?php endforeach; endif; unset($_from); ?>

<?php endforeach; endif; unset($_from); ?>	  

	</tr>
	<tr>
		<td align=center>日</td><td><?php echo $this->_tpl_vars['vv']['lyear_sale7']; ?>
</td>
		<td align=center>B3</td>
		<td><?php echo $this->_tpl_vars['vv']['lnpc_b3']; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv']['lpc_b3']; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv']['npc_b3']; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv']['pc_b3']; ?>
</td>
		
 <?php $_from = $this->_tpl_vars['cell_wsets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<td align=center>B3</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['npc_b3']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['pc_b3']]; ?>
</td>
 <?php endforeach; endif; unset($_from); ?>
<?php $_from = $this->_tpl_vars['cell_losets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<td align=center>B3</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['lnpc_b3']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['lpc_b3']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['npc_b3']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['pc_b3']]; ?>
</td>
		<?php $_from = $this->_tpl_vars['cv']['weeks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cwsets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cwsets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['wck'] => $this->_tpl_vars['wcv']):
        $this->_foreach['cwsets']['iteration']++;
?>
		 <td align=center>B3</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['wcv']['npc_b3']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['wcv']['pc_b3']]; ?>
</td>
		<?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?>
	</tr>
		<tr>
		<td align=center>計</td><td><?php echo $this->_tpl_vars['vv']['lyear_sale']; ?>
</td>
		<td align=center>B4</td>
		<td><?php echo $this->_tpl_vars['vv']['lnpc_b4']; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv']['lpc_b4']; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv']['npc_b4']; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv']['pc_b4']; ?>
</td>
 <?php $_from = $this->_tpl_vars['cell_wsets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<td align=center>B4</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['npc_b4']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['pc_b4']]; ?>
</td>
 <?php endforeach; endif; unset($_from); ?>
<?php $_from = $this->_tpl_vars['cell_losets']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['csets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['csets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['ck'] => $this->_tpl_vars['cv']):
        $this->_foreach['csets']['iteration']++;
?>
		<td align=center>B4</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['lnpc_b4']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['lpc_b4']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['npc_b4']]; ?>
</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['cv']['pc_b4']]; ?>
</td>
		<?php $_from = $this->_tpl_vars['cv']['weeks']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['cwsets'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cwsets']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['wck'] => $this->_tpl_vars['wcv']):
        $this->_foreach['cwsets']['iteration']++;
?>
		<td align=center>B4</td>
		<td><?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['wcv']['npc_b4']]; ?>
</td>
		<td>"<?php echo $this->_tpl_vars['vv'][$this->_tpl_vars['wcv']['pc_b4']]; ?>
</td>
		<?php endforeach; endif; unset($_from); ?>
<?php endforeach; endif; unset($_from); ?>
	</tr>
<?php endforeach; endif; unset($_from); ?>
	</table>
</div>

				<p class="button">
					<button type="button" id="btn-export"  ><span>CSVダウンロード</span></button>
				</p>
<?php else: ?>
<p class="message">条件にマッチする情報は見つかりませんでした。</p>
<?php endif; ?>
<?php else: ?>
	<p class="message">ここに検索結果が表示されます。</p>
<?php endif; ?>
			</form>
<div id="dialog" >
</div>
		</div></div>
		<?php echo $this->_tpl_vars['footer']; ?>

	</body>
</html>